export const asynchronousRouter = [
  {
    path: '/table',
    name: 'table',
    component: () => import('@/views/Layout.vue'),
    meta: {
      title: 'Table',
      icon: 'table',
      permission: ['admin'],
      hidden: true
    },
    children: [
      {
        path: '/table/detail',
        name: 'tableDetail',
        component: () => import('@/page/Table/index.vue'),
        meta: {
          title: 'Table',
          icon: 'table',
          permission: ['admin'],
          hidden: true
        }
      }
    ]
  },
  {
    path: '/select',
    name: 'select',
    component: () => import('@/views/Layout.vue'),
    meta: {
      title: 'Select',
      icon: 'select',
      permission: ['admin'],
      hidden: true
    },
    children: [
      {
        path: '/select/detail',
        name: 'SelectDetail',
        component: () => import('@/page/Select/index.vue'),
        meta: {
          title: 'Select',
          icon: 'select',
          permission: ['admin'],
          hidden: true
        }
      }
    ]
  },
  {
    path: '/form',
    name: 'form',
    component: () => import('@/views/Layout.vue'),
    meta: {
      title: 'Form',
      icon: 'Form',
      permission: ['admin'],
      hidden: true
    },
    children: [
      {
        path: '/form/detail',
        name: 'FormDetail',
        component: () => import('@/page/Form/index.vue'),
        meta: {
          title: 'Form',
          icon: 'Form',
          permission: ['admin'],
          hidden: true
        }
      }
    ]
  },
  {
    path: '/chart',
    name: 'chart',
    component: () => import('@/views/Layout.vue'),
    meta: {
      title: 'chart',
      icon: 'chart',
      permission: ['admin'],
      hidden: true
    },
    children: [
      {
        path: '/chart/detail',
        name: 'ChartDetail',
        component: () => import('@/page/Chart/index.vue'),
        meta: {
          title: 'chart',
          icon: 'chart',
          permission: ['admin'],
          hidden: true
        }
      }
    ]
  },
  {
    path: '/Test',
    name: 'Test',
    component: () => import('@/page/Test/index.vue'),
    meta: {
      title: 'Test',
      icon: 'Test',
      permission: ['users'],
      hidden: true
    }
  }
]
/*
 * @Description: Stay hungry，Stay foolish
 * @Author: Huccct
 * @Date: 2023-05-19 17:46:49
 * @LastEditors: Huccct
 * @LastEditTime: 2023-06-02 10:33:35

export const asyncRoute = [
  {
    path: '/acl',
    component: () => import('@/layout/index.vue'),
    name: 'Acl',
    meta: {
      title: '权限管理',
      hidden: false,
      icon: 'Lock'
    },
    redirect: '/acl/user',
    children: [
      {
        path: '/acl/user',
        component: () => import('@/views/acl/user/index.vue'),
        name: 'User',
        meta: {
          title: '用户管理',
          hidden: false,
          icon: 'User'
        }
      },
      {
        path: '/acl/role',
        component: () => import('@/views/acl/role/index.vue'),
        name: 'Role',
        meta: {
          title: '角色管理',
          hidden: false,
          icon: 'Avatar'
        }
      },
      {
        path: '/acl/permission',
        component: () => import('@/views/acl/permission/index.vue'),
        name: 'Permission',
        meta: {
          title: '菜单管理',
          hidden: false,
          icon: 'List'
        }
      }
    ]
  },
  {
    path: '/product',
    component: () => import('@/layout/index.vue'),
    name: 'Product',
    meta: {
      title: '商品管理',
      hidden: false,
      icon: 'Goods'
    },
    redirect: '/product/trademark',
    children: [
      {
        path: '/product/trademark',
        component: () => import('@/views/product/trademark/index.vue'),
        name: 'Trademark',
        meta: {
          title: '品牌管理',
          icon: 'ShoppingCart',
          hidden: false
        }
      },
      {
        path: '/product/attr',
        component: () => import('@/views/product/attr/index.vue'),
        name: 'Attr',
        meta: {
          title: '属性管理',
          icon: 'Management',
          hidden: false
        }
      },
      {
        path: '/product/spu',
        component: () => import('@/views/product/spu/index.vue'),
        name: 'Spu',
        meta: {
          title: 'Spu',
          icon: 'SetUp',
          hidden: false
        }
      },
      {
        path: '/product/sku',
        component: () => import('@/views/product/sku/index.vue'),
        name: 'Sku',
        meta: {
          title: 'Sku',
          icon: 'ScaleToOriginal',
          hidden: false
        }
      }
    ]
  }
]

export const anyRoute = {
  path: '/:pathMatch(.*)*',
  redirect: '/404',
  name: 'Any',
  meta: {
    title: '任意路由',
    hidden: true
  }
}
 */
